import config from "@/config"
import http from "@/utils/request"

export default {
  fetchList: {
    url: `${config.API_URL}/ms/cms/short/list/openApi`,
    name: "获取短剧列表",
    get: async function(params){
      return await http.get(this.url, params)
    }
  },
  fetchVideoUrl: {
    url: `${config.API_URL}/ms/open/api/v1/short/series/showPath`,
    name: "获取剧集链接",
    get: async function(params){
      return await http.get(this.url, params)
    }
  },
  postSelectShort: {
    url: `${config.API_URL}/ms/open/api/v1/short/series/addShort`,
    name: "选择剧集",
    get: async function(params){
      return await http.get(this.url, params)
    }
  },
  postCancelShort: {
    url: `${config.API_URL}/ms/open/api/v1/short/series/cancelShort`,
    name: "取消选择剧集",
    get: async function(params){
      return await http.get(this.url, params)
    }
  },
}